coeftest(fit, vcov = vcovHC(fit)) or TSLM() + robust SEs.glance(fit) |> select(AIC, AICc, BIC).| Model | Equation | Interpretation of β1 |
|---|---|---|
| Log-log | log y = β0 + β1 log x | Elasticity: 1% ↑ x ⇒ β1% ↑ y |
| Log-linear | log y = β0 + β1 x | Semi-elasticity: 1 unit ↑ x ⇒ 100β1% ↑ y |
| Linear-log | y = β0 + β1 log x | 1% ↑ x ⇒ β1/100 unit ↑ y |
forecast() which handles both automatically.TSLM() fits time series linear models with convenient shorthand.report(fit) gives coefficients, standard errors, t-statistics, and R². gg_tsresiduals(fit) checks assumptions.